
#Include "fbstrings.bi"

Using FB.Strings

Print StrSubstring("abcdef", -1)
Print StrSubstring("abcdef", -2)
Print StrSubstring("abcdef", -3, 1)
Print 
Print StrSubstring("abcdef", 1, -1)
Print StrSubstring("abcdef", 3, -1)
Print StrSubstring("abcdef", 5, -4)
Print StrSubstring("abcdef", -3, -1)
Print
Print StrSubstring("abcdef", 2)
Print StrSubstring("abcdef", 2, 3)
Print StrSubstring("abcdef", 1, 4)
Print StrSubstring("abcdef", 1, 8)
Print StrSubstring("abcdef", -1, 1)

Sleep